﻿using System;
using Petra.Gis.Geometry.Support;
using Petra.Gis.ReferenceSystemServices;
using Petra.Gis.ReferenceSystemServices.Transformations;


namespace testDocumentServices
{
  public class testTransformSearchcs
  {


    public static void testMe()
    {
      ProjectedCoordinateSystem jtsk = null;
      ProjectedCoordinateSystem wgs32662 = null;

      //xamlTest.testXAML();


      //SRSTransform t = SRSTransform.GetTransformation(jtsk, wgs32662);
      SRSTransform t = Petra.Gis.Environment.SearchTransformationBy(jtsk, wgs32662);
      SRSTransform t1 = t.Inverse();

      //Coordinate c = new Coordinate(-504691.675, -1289068.724, 0.0);
      Coordinate c = new Coordinate(-436500, -1139999, 0.0);
      Coordinate c1 = new Coordinate(-434000, -1137999, 0.0);

      t.Transform(c);
      t.Transform(c1);


      c = new Coordinate(-637092.55, -1176279.95, 0.0);




      t.Transform(c);


      c = new Coordinate(16.101621, 49.017543, 0.0);

      t1.Transform(c);

    }

  }
}
